.class Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;
.super Ljava/lang/Object;
.source "NiceAppAboutUsActivity.java"

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->initWidgetsActions()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;)V
    .registers 2
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    .prologue
    .line 86
    iput-object p1, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .registers 12
    .param p2, "view"    # Landroid/view/View;
    .param p3, "position"    # I
    .param p4, "id"    # J
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/widget/AdapterView",
            "<*>;",
            "Landroid/view/View;",
            "IJ)V"
        }
    .end annotation

    .prologue
    .line 90
    .local p1, "parent":Landroid/widget/AdapterView;, "Landroid/widget/AdapterView<*>;"
    const/16 v2, 0xa

    if-ne p3, v2, :cond_30

    .line 91
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    const-string v3, "OpenBriWebsiteFromAboutUs"

    invoke-static {v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    .line 93
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getContext()Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/brixd/niceapp/activity/WebViewActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 94
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "URL"

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    const v4, 0x7f0c0039

    invoke-virtual {v3, v4}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 95
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->startActivity(Landroid/content/Intent;)V

    .line 110
    .end local v1    # "intent":Landroid/content/Intent;
    :cond_2f
    :goto_2f
    return-void

    .line 97
    :cond_30
    const/16 v2, 0x8

    if-ne p3, v2, :cond_58

    .line 98
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    const v3, 0x7f0c0141

    invoke-virtual {v2, v3}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iget-object v3, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v3}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v3

    invoke-static {v2, v3}, Lcom/zuiapps/suite/utils/string/StringUtils;->copyToClipboard(Ljava/lang/String;Landroid/content/Context;)V

    .line 99
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v2}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v2

    const v3, 0x7f0c0054

    const/4 v4, 0x0

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_2f

    .line 100
    :cond_58
    const/4 v2, 0x7

    if-ne p3, v2, :cond_2f

    .line 102
    :try_start_5b
    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.SENDTO"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "mailto:"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    iget-object v4, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v4}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getActivity()Landroid/app/Activity;

    move-result-object v4

    const v5, 0x7f0c0038

    invoke-virtual {v4, v5}, Landroid/app/Activity;->getString(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

    move-result-object v3

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Ljava/lang/String;Landroid/net/Uri;)V

    .line 103
    .restart local v1    # "intent":Landroid/content/Intent;
    iget-object v2, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;->this$0:Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;

    invoke-virtual {v2, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->startActivity(Landroid/content/Intent;)V
    :try_end_8b
    .catch Ljava/lang/Exception; {:try_start_5b .. :try_end_8b} :catch_8c

    goto :goto_2f

    .line 104
    .end local v1    # "intent":Landroid/content/Intent;
    :catch_8c
    move-exception v0

    .line 105
    .local v0, "e":Ljava/lang/Exception;
    const-string v2, "No app to send email"

    invoke-static {v2}, Lcom/zuiapps/suite/utils/log/LogUtil;->e(Ljava/lang/String;)V

    goto :goto_2f
.end method
